@font-face {
  font-family: dt;
  src: url(./assets/dingtalk.woff2);
}

:root {
  --font: dt;
  --main-color: #275CBE;
  --light-color: rgba(127, 127, 127, .5);
  --background:#F2F2F2;
  font-family: var(--font);
  color-scheme: light dark;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root{
    --main-color:#2880F9;
    --background:#2E3233;
  }
}

html,body {
  margin: 0;
  padding: 0;
}

fieldset {
  margin: 3rem auto;
  border-radius: .6rem;
  width: 30rem;
  border:.1rem dashed var(--light-color);
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  legend {
    font-size: 1.2rem;
    color: var(--main-color);
    small{
      font-size:.8rem;
      color:var(--light-color);
    }
  }
}

input{
  border: none;
  box-sizing: border-box;
  padding: .5rem .9rem;
  font-size: 1rem;
  background: var(--background);
  font-family: var(--font);
  outline: none;
  border-radius: .4rem;
  display: block;
  width: 13.8rem;
  &::placeholder{
    color: var(--light-color);
  }
  &[readonly]{
    cursor: pointer;
  }
}

::selection {
  background: var(--main-color);
  color: #fff;
}
